The XFONT function is a utility that creates a modal widget for selecting and viewing an X Windows font.
Calling XFONT resets the current X Windows font.
Note: This routine is only available on UNIX platforms.
This routine is written in the IDL language. Its source code can be found in the file xfont.pro in the lib/utilities subdirectory of the IDL distribution.
Result = XFONT( [, GROUP=widget_id] [, /PRESERVE_FONT_INFO] )
The function returns a string containing the name of the last selected font. If no font is selected, or the “Cancel” button is clicked, an empty string is returned.
None.
The widget ID of the widget that calls XFONT. When this ID is specified, the death of the caller results in the death of XFONT.
Set this keyword to make XFONT save the server font directory in common blocks so that subsequent calls to XFONT start-up much faster. If this keyword is not set, the common block is cleaned.
Pre-4.0 |
Introduced |